﻿using UnityEngine;
using System.Collections;

namespace Room
{
    public class RCAIGuardMove : RCAIGuardBase
    {
        protected override void OnEnter()
        {
            controller.owner.PlayAnim(AniName.RUN);
        }
        protected override void OnTick()
        {
            if(!controller.owner.IsMoving())
            {
                controller.SwitchState((int)UnionGuardState.Stand);
            }
        }
    }
}